package create.builder;

import lombok.Data;
import lombok.Setter;

@Setter
public class Car {
    private Frame frame;
    private Glass glass;
    private Tire tire;

    @Override
    public String toString() {
        return "Car{" +
                "frame=" + frame +
                ", glass=" + glass +
                ", tire=" + tire +
                '}';
    }
}

@Data
class Frame{
    private String name;

    public Frame(String name) {
        this.name = name;
    }
}
@Data
class Glass{
    private String name;

    public Glass(String name) {
        this.name = name;
    }
}
@Data
class Tire{
    private String name;

    public Tire(String name) {
        this.name = name;
    }
}